package lj.courseinterect.dao.i;

import lj.courseinterect.entity.CourseInfo;
import lj.courseinterect.entity.LocateInfo;
import lj.courseinterect.entity.MajorInfo;

import java.util.List;

/**
 * Created by CatoldCui on 2015/4/20.
 */
public interface LocateInfoDao extends Dao<LocateInfo, Long>{
    /**
     * 查询学生是否已经在课堂签到
     * @return
     */
    LocateInfo findByStuIdAndCouId(Long stuId, Long couId);

    /**
     * 查询课堂签到
     * @return
     */
    List<LocateInfo> queryByCouId(Long couId);

    /**
     * 删除签到
     * @param couId
     * @return
     */
    int deleteByCouId(Long couId);
}
